/* 场景卡片样式 */
.scene-card {
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
}

.scene-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.scene-card--selected {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.scene-card--dragging {
  opacity: 0.4;
  transform: rotate(3deg);
}

/* 缩略图区域 */
.scene-card__thumbnail {
  position: relative;
  width: 100%;
  height: 140px;
  background: #f5f5f5;
}

.scene-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.scene-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px;
}

.scene-card:hover .scene-card__overlay {
  opacity: 1;
}

.scene-card__index {
  background: rgba(24, 144, 255, 0.9);
  border: none;
  color: white;
  font-weight: 500;
}

.scene-card__menu-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
  opacity: 0.8;
}

.scene-card__menu-btn:hover {
  opacity: 1;
  background: white;
}

/* 卡片内容区域 */
.scene-card__content {
  padding: 12px;
}

.scene-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.scene-card__title {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  margin-right: 8px;
}

.scene-card__description {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px !important;
  min-height: 32px;
}

.scene-card__info {
  margin-bottom: 8px;
}

.scene-card__location {
  font-size: 12px;
}

.scene-card__stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 拖拽相关样式 */
.draggable-scene-card {
  transition: all 0.3s ease;
}

.draggable-scene-card:hover {
  transform: scale(1.02);
}

/* 添加场景卡片样式 */
.add-scene-card {
  transition: all 0.3s ease;
}

.add-scene-card:hover {
  border-color: #1890ff !important;
  background-color: #f6ffed !important;
  transform: translateY(-2px);
}

.add-scene-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
}

/* 场景网格样式 */
.scene-grid {
  padding: 16px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .scene-card__content {
    padding: 8px;
  }
  
  .scene-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .scene-card__title {
    margin-right: 0;
  }
  
  .scene-card__description {
    min-height: 24px;
  }
  
  .scene-card__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* 动画效果 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scene-card {
  animation: scaleIn 0.3s ease-out;
}

/* 拖拽指示器 */
.scene-card__drag-indicator {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 4px;
  height: 60%;
  background: #1890ff;
  border-radius: 2px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scene-card--drag-over .scene-card__drag-indicator {
  opacity: 1;
}